import axios from '@/axios'

// 下载模板
export const easypoiDownloadApi = () => {
    return axios({
        url: '/easypoi/download',
        method: 'post',
        responseType: 'blob'
    })
}

// 导出
export const easypoiExportApi = () => {
    return axios({
        url: '/easypoi/export',
        method: 'post',
        responseType: 'blob'
    })
}

// 导入
export const easypoiImportFileApi = (data) => {
    return axios({
        url: '/easypoi/import',
        method: 'post',
        data,
        header: {
            headers: {
                "Content-Type": "multipart/form-data"
            }
        }
    });
};
